// npm i --save save
// npm i --save-dev http-proxy-middleware
const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function(app) {
    app.use(
        '/ajax',
        createProxyMiddleware({
            target: 'https://m.maoyan.com',
            changeOrigin: true,
        })
    );

};
